﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace DashFire
{
  public class PathUtil
  {
    public static void CreatePersistentDataPath()
    {
      System.IO.Directory.CreateDirectory(Application.persistentDataPath);
    }

    public static string WWWPersistentDataPath(string RelativePath)
    {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
      return "file:///" + Application.persistentDataPath + RelativePath;
#else
      return "file://"+ Application.persistentDataPath + RelativePath;
#endif
    }
    
    public static string GetPersistentDataPath(string RelativePath)
    {
      return Application.persistentDataPath + RelativePath;
    }

  }
}
